﻿using Microsoft.AspNetCore.Mvc;

namespace xzz.webapi.Controllers
{
    //http://localhost:prornumner/api/students
    [Route("api/[controller]")]
    [ApiController]
    public class StudentsController : ControllerBase
    {
        //http://localhost:prornumner/api/students
        [HttpGet]
        public IActionResult GetAllStudents()
        {
            string[] strings = new string[] { "学生1号", "学生2号", "学生3号", "学生4号" };
            return Ok(strings);
        }
    }
}
